package test;

/**
 * @author Smartloe
 * @create 2021-07-06 18:54
 */
public class test {
    public static void main(String[] args) {
        System.out.println(getGCD(9,6));
    }
    public static int getGCD(int m, int n) {
        if (m % n == 0) {
            return n;
        } else {
            return getGCD(n, m % n);
        }
    }
    
}


